package com.polaris.server.service;

import com.polaris.server.pojo.SysMenu;
import com.polaris.server.pojo.SysRoleMenu;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author polaris
 * @since 2021-06-06
 */
public interface ISysRoleMenuService extends IService<SysRoleMenu> {

    /**
     * 通过roleIdList获取urlSet
     * @param roleList
     * @return
     */
    Set<String> getUrlSet(List<Long> roleList);

    /**
     * 通过roleIdList获取menuList
     * @param roleList
     * @return
     */
    List<SysMenu> getMenuList(List<Long> roleList);
}
